﻿using System.Linq;
using System.Reflection;

namespace System
{
    public class SharedTypes
    {
        public static Type[] GetTypes()
        {
            var entry = Assembly.GetEntryAssembly();
            var nameSpace = entry.GetName().Name + ".Entitys";
            return Assembly.GetExecutingAssembly().GetTypes().Where(a => a.IsClass && a.Namespace == nameSpace).ToArray();
        }
    }
}
